package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author youli.chen
 * @ProjectName xbb-pro
 * @Description: TODO
 * @date 2019/1/21 13:46
 */
@Setter
@Getter
@ToString
public class ChartSetSaveDTO extends BaseDTO {

    /**
     * pk榜指标id
     */
    private Long chartId;

    /**
     * 指标名称
     */
    @NotBlank(message="{dto.msg.chartSetSave.name.NotBlank}")
    @Length(max= 10, message = "{dto.msg.chartSetSave.name.Length}")
    private String name;

    /**
     * 指标类型
     * @see com.xbongbong.pro.statistic.enums.StatisticsTypeEnum
     */
    private Integer statisticsType;
}
